try:
    n = int(input("请输入被除数："))
    i = int(input("请输入除数："))
    m = n / i
except BaseException as e:
    print(e)
else:
    print("结果：", m)  # 可以拿到 try 里面的变量

# print( Exception.mro())  # [<class 'Exception'>, <class 'BaseException'>, <class 'object'>]
# print(BaseException.mro())  # [<class 'BaseException'>, <class 'object'>]
